<?php/** * Class Edition for sewiki System *  * Define Edition's attributes and operator * This system is devolop from CodeIgniter Framework * Welcome to visit http://codeigniter.com/ *  * @package  : CodeIgniter * @category : model * @author   : Oneplus <oneplus.lau@gmail.com> * @date     : 2011-05-27 */class Edition extends CI_Model {	function __construct() {		parent::__construct();		$this->load->database();	}		public function createEdition($data) {		$this->db->insert('editions', $data);		return $this->db->insert_id();	}		public function getEdition($eid) {		$query   = $this->db->get_where('editions', array('eid' => $eid));		$edition = array(			'eid'         => $query->row()->eid,			'cid'         => $query->row()->cid,			'uid'         => $query->row()->uid,			'content'     => $query->row()->content,			'create_time' => $query->row()->create_time,			'comment'     => $query->row()->comment);					return $edition;	}};?>